package com.dhcc.mybatis.mapper.user;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.dhcc.mybatis.entity.user.User;

 /**
 * <p>描述：用户信息Mapper接口</p>
 * <p>公司：东华医为科技有限公司</p>
 * <p>版权：dhcc-2019</p>
 * @author liuyg
 * @since 2019-12-25
 */
public interface UserMapper extends BaseMapper<User> {

//	@Results({
//		@Result(property="userId", column="user_id", id=true),
//        @Result(property="name", column="name"),
//        @Result(property="gender", column="gender"),
//        @Result(property="birthday", column="birthday"),
//        @Result(property="mobileNum", column="mobile_num"),
//        @Result(property="useStatus", column="use_status"),
//        @Result(property="createTime", column="create_time"),
//        @Result(property="updateTime", column="update_time")
//    })
//	@Select({"SELECT user_id,name,gender,birthday,mobile_num,"
//			+ "use_status,create_time,update_time "
//			+ "FROM t_base_user "
//			+ "WHERE user_id = #{userId}"})
	User getUserById(@Param("userId")String userId);
}
